//
//  MeatMeSectionTableViewCell.m
//  PigMarket
//
//  Created by 张敬 on 2019/8/3.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "MeatMeSectionTableViewCell.h"

@implementation MeatMeSectionTableViewCell

#pragma mark - lifecycle methods

- (void)setupUI
{
    [self addSubview:self.titleLab];
    [self addSubview:self.detailLab];
}

- (void)setupLayout
{
    
    {
        _titleLab.size = CGSizeMake(200, 44);
        _titleLab.mj_y = 0;
        _titleLab.mj_x = 15;
    }
    
    {
        _detailLab.size = CGSizeMake(150, 44);
        _detailLab.mj_x = KScreenWidth -30 - _detailLab.width -15;
        _detailLab.mj_y = 0;
    }
}

#pragma mark - setter methods


#pragma mark - getter methods

- (UILabel *)titleLab{
    
    if (!_titleLab) {
        _titleLab = [UILabel makeLabelWithText:@"我的服务" textColor:mMainTextColor font:mMediumFont(14) textAliment:0];
    }
    return _titleLab;
}

- (UILabel *)detailLab{
    
    if (!_detailLab) {
        _detailLab = [UILabel new];
        _detailLab.textAlignment = NSTextAlignmentRight;
        NSMutableAttributedString *puStr = [@"查看全部订单" createAttributingByIcon:nil downIndexImage:@"user_gt" textColor:UIColorFromRGB(0x999999) font:mFont(12)];
        _detailLab.attributedText = puStr;
        _detailLab.hidden = NO;
    }
    return _detailLab;
}



@end
